package com.crm.controller;


import com.crm.pojo.common.Result;
import com.crm.service.MenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/menu")
@Slf4j
public class MenuController {
    @Autowired
    private MenuService menuService;
    @GetMapping("/treeselect")
    public Result treeselect() {
        return Result.success(menuService.treeselect(0L));
    }
}
